package com.greenant.store.bean;

import com.avos.avoscloud.AVACL;
import com.avos.avoscloud.AVClassName;

@AVClassName(AntAVObject.CLASS_SERVIEPHONE)
public class ServiePhone extends AntAVObject {
	public static final String ATTR_PHONE ="phone";

	public ServiePhone() {
		super();			
		setAccessCtrl();
	}
	
	public ServiePhone(String str) {
		super(str);
		setAccessCtrl();		
	}
	
	public ServiePhone getInstance()
	{
		return this;
	}

	public String getPhone() {
		return this.getString(ATTR_PHONE);
	}
	
	public void setUserId(String phone) {
		this.put(ATTR_PHONE, phone);
	}
	
	private int setAccessCtrl() {
		acl = new AVACL();
		acl.setPublicReadAccess(true);
		acl.setPublicWriteAccess(true);
		this.setACL(acl);
		return 0;
	}
}
